package com.dao.impl;

import com.beans.User;
import com.dao.UserDao;
import com.utils.JdbcUtils;

public class UserDaoImpl implements UserDao {
    @Override
    public boolean login(User user) {
        String sql="select * from user where user_name=? and user_password=? and user_type=0";
        Object one = JdbcUtils.queryOne(User.class, sql, user.getUserName(), user.getUserPassword());
        return one!=null;
    }
}
